class CreateResources < ActiveRecord::Migration
  def self.up
    create_table :resources do |t|
      t.column :file, :string
      t.column :title, :string
      t.column :user_id, :integer
      t.column :created_at, :timestamp
      t.column :file_size, :integer
      t.column :thumbnail, :string
      t.column :download_count, :integer
    end
  end

  def self.down
    drop_table :resources
  end
end
